<el-form ref="form" :model="form" :rules="rules" label-width="100px">
    <el-row :gutter="10">
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="姓名" prop="GWAA002">
                <el-input v-model="form.GWAA002"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="微信号码" prop="GWAA003">
                <el-input v-model="form.GWAA003" :readonly="!isAdd"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="出生日期" prop="GWAA005">
                <el-date-picker
                        type="date"
                        v-model="form.GWAA005"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="性别" prop="GWAA006">
                <el-select v-model="form.GWAA006" clearable>
                    <el-option v-for="item in selectOptions.base_gwai120_gwaa006" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="人员类型" prop="GWAA007">
                <el-select v-model="form.GWAA007" @change="gwaa007" clearable>
                    <el-option v-for="item in selectOptions.base_gwai120_gwaa007" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="所属角色" prop="ROLE_NAME">
                <el-input v-model="form.ROLE_NAME" :disabled="status" readOnly clearable>
                    <i class="el-icon-search el-input__icon" @click="open" slot="suffix" v-show="!status"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="所属组织" prop="GWAA008_NAME">
                <el-input v-model="form.GWAA008_NAME" @change="gwaa008" readonly clearable>
                    <i class="el-icon-search el-input__icon" @click="selectOrg" slot="suffix">
                    </i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="注册来源" prop="GWAA010">
                <el-select v-model="form.GWAA010" clearable>
                    <el-option v-for="item in selectOptions.base_gwai120_gwaa010" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="状态" prop="GWAAACTI">
                <el-select v-model="form.GWAAACTI" clearable>
                    <el-option v-for="item in selectOptions.base_gwai120_gwaaacti" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="省" prop="GWAA017">
                <el-select v-model="form.GWAA017" clearable>
                    <el-option v-for="item in selectOptions.base_gwai120_gwaa017" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="城市" prop="GWAA018">
                <el-select v-model="form.GWAA018" clearable>
                    <el-option v-for="item in selectOptions.base_gwai120_gwaa018" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="地区" prop="GWAA015">
                <el-input v-model="form.GWAA015" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="国家" prop="GWAA016">
                <el-input v-model="form.GWAA016" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="客户行业" prop="GWAA022">
                <el-select v-model="form.GWAA022" clearable>                 <!--@change="GWAA022"-->
                    <el-option v-for="item in selectOptions.base_gwai120_khhy" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="归属交易对象" prop="GWAA009">
                <el-input v-model="form.GWAA009" readOnly clearable>
                    <i class="el-icon-search el-input__icon" @click="openGsdx" slot="suffix"></i>
                </el-input>
                <!--<el-select v-model="form.GWAA009">-->
                    <!--<el-option v-for="item in selectOptions.base_gwai120_gwaa009" :label="item.value"-->
                               <!--:value="item.code"></el-option>-->
                <!--</el-select>-->
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="E-mail" prop="GWAA011">
                <el-input v-model="form.GWAA011"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="邮编" prop="GWAA012">
                <el-input v-model="form.GWAA012"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="手机号码" prop="GWAA004">
                <el-input v-model="form.GWAA004"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="联系电话" prop="GWAA014">
                <el-input v-model="form.GWAA014"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="常用地址" prop="GWAA013">
                <el-input v-model="form.GWAA013"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button v-show="!isDetail" type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/base/gwai120_edit"], $.noop);
</script>
